package com.ruoyi.classai.controller;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.classai.domain.EwcStudent;
import com.ruoyi.classai.service.IPxTrainingMessageService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.security.annotation.InnerAuth;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

;import javax.validation.constraints.NotBlank;
import java.util.Objects;

/**
 * 培训消息Controller
 * 
 * @author lcj
 * @date 2025-06-25
 */
@RestController
@RequestMapping("/trainingMessage")
public class PxTrainingMessageController extends BaseController {

    @Autowired
    private IPxTrainingMessageService pxTrainingMessageService;

    /**
     * 添加培训消息提醒
     * @return AjaxResult
     */
    @InnerAuth
    @GetMapping("/addHomeWorkMeaage")
    public AjaxResult addHomeWorkMeaage() {
        pxTrainingMessageService.addPxMeaage();
        return AjaxResult.success("成功");
    }

}
